#!usr/bin/python3
#-*- coding:utf-8 -*-

import pymysql

class Db:
    def dbConfig(self):
        try:
            db = pymysql.connect('localhost','root','root','xiachufang')
            return db
        except Exception as e:
            print('db connect error')
            exit()